package com.modern.js.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.modern.js.entity.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.modern.js.pojo.AssistPojo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author PIGS
 * @since 2020-03-23
 */
@Repository
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

    List<AssistPojo> selectById(Integer empId);

    int register(Employee employee);

    IPage<Employee> selectList(Page<Employee> page,String empName,String createTime);

    Employee selectByName(String empName);

    int updatePerson(Employee employee);
}
